package icu.wangrui.bookstore.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class TestController {

    @RequestMapping({"/","/index"})
    public String indexController(){
        return "index";
    }
    @RequestMapping("/login")
    public String loginController(){
        return "user/page/login";
    }


    @RequestMapping("/adminLogin")
    public String toAdminController(){
        return "/user/page/login";
    }

}
